/**
 * Email to Site Map.
 * 根据邮箱的后缀打开邮箱登录页面.
 *
 * User: Administrator
 * Time: 2012-04-25 14:10
 */
(function (window) {
    var mailMap = {
        "gmail.com":"http://gmail.com",
        "hotmail.com":"http://www.hotmail.com",
        "live.com":"http://www.hotmail.com",
        "126.com":"http://mail.126.com",
        "163.com":"http://mail.163.com",
        "sina.com":"http://mail.sina.com.cn",
        "sina.cn":"http://mail.sina.com.cn",
        "qq.com":"http://mail.qq.com",
        "vip.qq.com":"http://mail.qq.com",
        "foxmail.com":"http://mail.qq.com",
        "yahoo.com":"http://mail.yahoo.com",
        "yahoo.com.tw":"http://mail.yahoo.com.tw",
        "yahoo.com.hk":"http://mail.yahoo.com.hk",
        "sohu.com":"http://mail.sohu.com",
        "yeah.net":"http://www.yeah.net",
        "yahoo.cn":"http://mail.yahoo.com.cn"
    };

    window.e2s = function (mail) {
        window.open(mailMap[mail.substring(mail.indexOf("@") + 1)] || "http://" + mail);
    };
}(window));

